//
//  RegisterViewController.m
//  UI_元旦豆瓣电影
//
//  Created by 陆静聪 on 16/1/3.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "RegisterViewController.h"
#import "LTView.h"
@interface RegisterViewController ()

@end

@implementation RegisterViewController

- (void)dealloc {
    [super dealloc];
    
}

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self informate];
}

- (void)informate {
    LTView *lt1 = [[LTView alloc] initWithFrame:CGRectMake(10, 50, 300, 30)];
    lt1.myLabel.text = @"用户名";
    lt1.myTextField.placeholder = @"请输入用户名";
    [self.view addSubview:lt1];
    [lt1 release];
    
    LTView *lt2 = [[LTView alloc] initWithFrame:CGRectMake(10, 100, 300, 30)];
    lt2.myTextField.placeholder = @"请输入密码";
    lt2.myLabel.text = @"密码";
    [self.view addSubview:lt2];
    [lt2 release];
    
    LTView *lt3 = [[LTView alloc] initWithFrame:CGRectMake(10, 150, 300, 30)];
    lt3.myLabel.text = @"确认密码";
    lt3.myTextField.placeholder = @"请再次输入密码";
    [self.view addSubview:lt3];
    [lt3 release];
    
    LTView *lt4 = [[LTView alloc] initWithFrame:CGRectMake(10, 200, 300, 30)];
    lt4.myLabel.text = @"邮箱";
    lt4.myTextField.placeholder = @"请输入邮箱";
    [self.view addSubview:lt4];
    [lt4 release];
    
    LTView *lt5 = [[LTView alloc] initWithFrame:CGRectMake(10, 250, 300, 30)];
    lt5.myLabel.text = @"联系方式";
    lt5.myTextField.placeholder = @"请输入联系方式";
    [self.view addSubview:lt5];
    [lt5 release];
    
    
    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@"注册" style:UIBarButtonItemStylePlain target:self action:@selector(item:)];
    self.navigationItem.rightBarButtonItem = item;
    [item release];
}

- (void)item:(UIBarButtonItem *)item {
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
